using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Jonathan.Tabber
{
    public class PageEventArgs : EventArgs
    {
        private TabberPage m_Page;
        private bool m_Cancel;

        public PageEventArgs(TabberPage page)
        {
            this.m_Page = page;
            this.Cancel = false;
        }

        /// <summary>
        /// Gets the Page associated with the action...
        /// </summary>
        public TabberPage Page
        {
            get { return this.m_Page; }
        }

        /// <summary>
        /// Gets or Sets to cancel the action or not...
        /// </summary>
        public bool Cancel
        {
            get { return this.m_Cancel; }

            set { this.m_Cancel = value; }
        }
    }
}
